-- GENERATED SPELL FOR [Hatecrest Wave Rider] --


function spell0_5332(pUnit, Event) --@Geyser,Self--
pUnit:FullCastSpellOnTarget(10987,pUnit)
pUnit:RegisterEvent('Sorts_5332', 5276, 1)
end

function Sorts_5332(pUnit, Event)
local choix_sorts_5332 = math.random(0, 0)
if choix_sorts_5332 == 0 then
pUnit:RegisterEvent('spell0_5332', 1, 1)
end
end

function mob5332_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5332', math.random(1500, 3000), 1)
end

function mob5332_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5332_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5332_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5332, 1, 'mob5332_Action')
RegisterUnitEvent(5332, 2, 'mob5332_Leave')
RegisterUnitEvent(5332, 3, 'mob5332_Kill')
RegisterUnitEvent(5332, 4, 'mob5332_Die')
